#region using

using NHibernate;

using RealEstate.Security;
using RealEstate.Security.User;

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

#endregion

namespace RealEstate.Website
{
	public partial class User : System.Web.UI.Page
	{
		#region Page_Load

		protected void Page_Load(object sender, EventArgs e)
		{

		}

		#endregion

		#region Event Handlers

		protected void btnSubmit_Click(object sender, EventArgs e)
		{

			UserEntity entity = new UserEntity();
			//entity.UserID = System.Guid;
			entity.Firstname = txtFirstname.Text;
			entity.Middlename = txtMiddlename.Text;
			entity.Lastname = txtLastname.Text;
			entity.Lastaccess = Convert.ToDateTime(txtLastAccess.Text);

			UserManager mgr = new UserManager();
			mgr.Create(entity);

		}

		#endregion

	}
}
